package xaj.puiatti.ast;

import java.util.List;

import polyglot.ast.Term;
import polyglot.lex.Identifier;
import polyglot.util.CodeWriter;
import polyglot.util.Position;
import polyglot.visit.CFGBuilder;
import polyglot.visit.PrettyPrinter;

public class Prec_c extends BlockRule_c implements Prec {

    private Identifier id1;
    private Identifier id2;

	public Prec_c(Position pos, Identifier id1, Identifier id2) {
		super(pos);
		this.id1 = id1;
        this.id2 = id2;
	}

	public Identifier getIdent1() {
        return id1;
	}
	
	public Identifier getIdent2() {
        return id2;
	}

	public void prettyPrint(CodeWriter w, PrettyPrinter pp) {
        w.begin(0);
        w.write(" prec( " + id1.getIdentifier() + " , " + id2.getIdentifier() + " );");
	}

	@Override
	public List acceptCFG(CFGBuilder v, List succs) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Term entry() {
		// TODO Auto-generated method stub
		return null;
	}
}
